<html>
    <head>
        <meta charset="utf-8">
        <style>
            .open1{ background: url(/Public/static/img/open1.png) left center no-repeat; background-size: 100% 100%}            
            .open2{ background: url(/Public/static/img/open2.png) left center no-repeat; background-size: 100% 100%}            
        </style>
    </head>    
    <body>
        <form action="<?php echo $this->getSubmitUrl()?>" method="post">
            <?php
            foreach ($sendData as $key => $item) {
                ?>
                <input type='hidden' name="<?php echo $key; ?>" value="<?php echo $item ?>" />
                <?php
            }
            ?>
        </form>
        <script>
            var u = navigator.userAgent, app = navigator.appVersion;
            var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器
            var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
            var isWechat = !!u.match(/MicroMessenger/i); //微信中
            if (isWechat) {
                if (isiOS) {
                   document.body.classList.add("open2");
                } else {
                     document.body.classList.add("open1");
                }
            } else {
                 window.document.forms[0].submit();
            }
        </script>

    </body>
</html>